package com.syaccp.controller;


import com.github.pagehelper.PageInfo;
import com.syaccp.model.TCustomerBill;
import com.syaccp.service.TCustomerBillService;
import com.syaccp.utils.Result;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiImplicitParam;
import io.swagger.annotations.ApiImplicitParams;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * <p>
 * 客户消费表 前端控制器
 * </p>
 *
 * @author finance
 * @since 2023-07-21
 */
@CrossOrigin
@Api(tags = "支付流水")
@RestController
@RequestMapping("/customerBill")
public class CustomerBillController {

    @Resource
    private TCustomerBillService iCustomerBillService;

    @GetMapping(value = "/PagingQueryPayment")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "index", value = "当前页", required = true)})
    public Result PagingQueryPayment(TCustomerBill customerBill) {
        PageInfo<TCustomerBill> empPageInfo=iCustomerBillService.PagingQueryPayment(customerBill.getIndex());
        return Result.success(empPageInfo);
    }




}
